﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace FrostGraphics.Umbraco.ContactForm {
  public class DataAccess {
    public ContactFormElement ReadFormFromConfig(String formName) {
      ContactFormSection section = (ContactFormSection)ConfigurationManager.GetSection("contactForms");
      ContactFormElement form = section.Forms[formName];
      return form;
    }
  }
}